package com.anan.service;

import com.anan.pojo.dto.BuyProductDTO;
import com.anan.pojo.dto.ProductDTO;
import com.anan.pojo.dto.UpdateStatusDTO;
import com.anan.pojo.vo.OrderVO;
import com.anan.pojo.vo.ProductInfosVO;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author anan
 * @date 2023/05/08/08:53
 **/

public interface ProductService {
    boolean addProducts(ProductDTO productDTO);

    ProductInfosVO getAllProductInfos(Integer adminStatus, Integer productStatus);

    @Transactional
    OrderVO buyProduct(BuyProductDTO buyProductDTO);

    ProductInfosVO getProductByLike(String qryName);

    boolean updateShelvesStatus(UpdateStatusDTO updateStatusDTO);
}
